package com.leadbank.security.hello.dao;

import com.leadbank.security.hello.model.Appointment;
import com.leadbank.security.hello.model.AppointmentExample;
import com.leadbank.security.hello.model.AppointmentKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * AppointmentDAO继承基类
 */
@Repository
public interface AppointmentDAO extends MyBatisBaseDao<Appointment, AppointmentKey, AppointmentExample> {

    /**
     * 通过主键查询预约图书记录，并且携带图书实体
     *
     * @param bookId
     * @param studentId
     * @return
     */
    Appointment queryByKeyWithBook(@Param("bookId") long bookId, @Param("studentId") long studentId);
}